<?php

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class WorkOrderStopRework extends Model
{
	
    protected $table = 'work_order_stop_reworks';

    protected $fillable = [
        'user_id',
        'work_order_id',
        'processes_archives_id',
        'original_processes_archives_id',
        'stop_rework_reason_id',
        'order_dispatch_id',
        'content',
        'type',
        'operation_id',
    ];

    public function processesArchives()
    {
        return $this->belongsTo(ProcessesArchive::class);
    }

    public function stopReworkReason()
    {
        return $this->belongsTo(StopReworkReason::class);
    }
}
